package com.bjpowernode.p2p.model.vo;

import java.io.Serializable;
import java.util.List;

/**
 * ClassName:Page
 * Package:com.bjpowernode.p2p.model.vo
 * Description: 分页功能的类
 *提供泛型T，这样只要用到分页就可以用该类了
 * @date:2021/7/16 21:12
 * @author:动力节点
 */
public class Page<T> implements Serializable {
    private String currentPage ;//当前页
    private Integer totalPageSize;//总页数=（总记录数-1）/每页展示的数据+1
    private Integer totalRows;//总记录数
    private String pageSize;//每页展示的数据
    private List<T> pageData;//当前页的数据

    public String getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(String currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getTotalPageSize() {
        return totalPageSize;
    }

    public void setTotalPageSize(Integer totalPageSize) {
        this.totalPageSize = totalPageSize;
    }

    public Integer getTotalRows() {
        return totalRows;
    }

    public void setTotalRows(Integer totalRows) {
        this.totalRows = totalRows;
    }

    public String getPageSize() {
        return pageSize;
    }

    public void setPageSize(String pageSize) {
        this.pageSize = pageSize;
    }

    public List<T> getPageData() {
        return pageData;
    }

    public void setPageData(List<T> pageData) {
        this.pageData = pageData;
    }
}
